/****** Object:  Stored Procedure dbo.spr_InsertDBClientComm  ******/

 use [TourIS]
 GO

 if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[spr_InsertDBClientComm]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
 drop procedure [dbo].[spr_InsertDBClientComm]
 GO

 SET QUOTED_IDENTIFIER OFF
 GO
 SET ANSI_NULLS OFF
 GO

 CREATE  PROCEDURE [dbo].[spr_InsertDBClientComm]
 (
	@clientid int,
	@compid int,
	@contactdate smalldatetime,
	@contactmode varchar(50),
	@details varchar(100),
	@srno int
 )
 AS

 BEGIN
	SET NOCOUNT ON
	DECLARE @Err int

	INSERT INTO [ClientComm]
	(
		[ClientId],
		[CompId],
		[ContactDate],
		[ContactMode],
		[Details],
		[SrNo]
	)
	VALUES
	(
		@clientid,
		@compid,
		@contactdate,
		@contactmode,
		@details,
		@srno
	)

	SET @Err = @@Error
	RETURN @Err
 END

 GO

 SET QUOTED_IDENTIFIER OFF
 GO
 SET ANSI_NULLS ON
 GO

